<template>
	<view>
		
	
		<view class="item col" v-for="item in list" @click="goItem(item)">
			<view class="item-top">
				<view class="row-between-center">
					<view class="row-h-center">
						<image src="/static/images/merchant.png" class="item-icon"></image>
						<view class="item-name">商家名称</view>
					</view>
					<view class="item-status-done" v-if="item.status==0|| item.status==1">
						已通过
					</view>
					<view class="item-status-out" v-if="item.status==2">
						已过期
					</view>
					<view class="item-status-wait" v-if="item.status==3">
						待审核
					</view>
					<view class="item-status-reject" v-if="item.status==4">
						已驳回
					</view>
				</view>
				
				<view class="item-text" style="margin-top: 30rpx;">商铺地址：青岛市黄岛区广西路60号20</view>
				<view class="item-text">到期日期：2023-10-14</view>
			</view>
		<view class="row-between-center">
			<view class="row-h-center">
				<image src="/static/images/check_n.png" class="item-check"></image>
				<view class="item-text">使用此商铺参与匹配</view>
			</view>
			<view class="item-btn row-center" @click.stop="goAllot" v-if="item.status==0">延迟认证时间</view>
			<view class="item-btn row-center" @click.stop="goAllot" v-if="item.status==2">重新认证</view>
			<view class="item-btn-2 row-center" @click.stop="goAllot" v-if="item.status==4">修改</view>
		</view>
		</view>
	
	
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:[
					{'status':0},{'status':1},{'status':2},{'status':3},{'status':4},
				]
			}
		},
		methods: {
			goItem(item){
				uni.navigateTo({
					url:'/src/pages/merchant_merchants/detail'
				})
			},
		}
	}
</script>
<style>
	page{
		 background: #F2F3F8;;
	}
</style>
<style lang="scss" scoped>
	
	.item{
		margin: 20rpx;
		padding: 32rpx 20rpx;
		border-radius: 12rpx;
		background-color:  #F7F8FC;
		.item-top{
			padding: 32rpx 20rpx;
			border-radius: 12rpx 0;
			background-color:  white;
		}
		.item-icon{
			width: 48rpx;
			height: 48rpx;
		}
		.item-name{
			color: #20252B;
			font-size: 32rpx;
			font-style: normal;
			font-weight: 500;
			line-height: 48rpx; 
		}
		.item-status-wait{
			color: #FF8934;
			font-size: 32rpx;
			font-style: normal;
			font-weight: 500;
			line-height: 48rpx; 
		}
		.item-status-reject{
			color: #EA401D;
			font-size: 32rpx;
			font-style: normal;
			font-weight: 500;
			line-height: 48rpx; 
		}
		.item-status-done{
			color: #3B60D3;
			font-size: 32rpx;
			font-style: normal;
			font-weight: 500;
			line-height: 48rpx; 
		}
		.item-status-out{
			color:  rgba(106, 104, 118, 0.45);
			font-size: 32rpx;
			font-style: normal;
			font-weight: 500;
			line-height: 48rpx; 
		}
		.item-text{
			color:  #6A6876;
			font-size: 24rpx;
			font-style: normal;
			font-weight: 400;
			line-height: 40rpx;
		}
		.item-btn-2{
				padding: 6rpx 26rpx;
			margin-top: 20rpx;
			flex-shrink: 0;
			border-radius: 32rpx;
			background: #6A6876;
			color: #FFF;
			font-size: 24rpx;
			font-style: normal;
			font-weight: 500;
			line-height: 40rpx; /* 166.667% */
		}
		.item-btn{
			padding: 6rpx 26rpx;
			margin-top: 20rpx;
			flex-shrink: 0;
			border-radius: 32rpx;
			background: #3B60D3;
			color: #FFF;
			font-size: 24rpx;
			font-style: normal;
			font-weight: 500;
			line-height: 40rpx; /* 166.667% */
		}
		.item-check{
			margin-right: 10rpx;
			width: 28rpx;
			height: 28rpx;
		}
	}
	
	.type-active{
		margin-right: 10rpx;
		
		border-radius: 8rpx;
		background: #347FFF;
		color: #FFF;
		font-size: 24rpx;
		font-style: normal;
		font-weight: 400;
		line-height: 40rpx; /* 166.667% */
	}
	.type-normal{
		padding: 6rpx 26rpx;
		margin-right: 10rpx;
		border-radius: 8rpx;
		background: #FFF;
		color: #676C7F;
		font-size: 24rpx;
		font-style: normal;
		font-weight: 400;
		line-height: 40rpx; /* 166.667% */
	}
	
	
	.search{
		padding: 20rpx;
		background: white;
	}
	.search-bg{
		background: #F6F7FB;
	}
	.type{
		margin: 10rpx;
		padding: 10rpx 20rpx;
		border-radius: 8rpx;
		background: #FFF;
		.type-text{
			color: #202430;
			font-size: 24rpx;
			font-style: normal;
			font-weight: 400;
			line-height: 40rpx; /* 166.667% */
		}
	}
	.arrow-down{
		width: 32rpx;
		height: 32rpx;
	}
	.search-btn{
		width: 120rpx;
		height: 60rpx;
		flex-shrink: 0;
		border-radius: 8rpx;
		background: #347FFF;
		color: #FFF;
		font-size: 24rpx;
		font-style: normal;
		font-weight: 400;
		line-height: 40rpx; /* 166.667% */
	}
</style>
